﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SPOooON.SDK.Array
{
    public class SparseArray2d<T>
    {
        private Dictionary<Tuple<int, int>, T> dictionary;

        public T this[int x, int y]
        {
            get { return dictionary[new Tuple<int, int>(x, y)]; }
            set { dictionary[new Tuple<int, int>(x, y)] = value; }
        }
    }
}
